From: Richard M. Stallman Date: Thu, 8 Sep 1994 19:14:12 +0000 (+0000) Subject: (record_asynch_buffer_change): Don't test X-Git-Tag: archive/raspbian/1%29.2+1-2+rpi1^2~5^2~90345 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:///%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:/?a=commitdiff_plain;h=f65e6f7da42c7c7fc1f0c382aee65979a897bd57;p=emacs.git (record_asynch_buffer_change): Don't test Fwaiting_for_user_input_p if no subprocesses. --- diff --git a/src/keyboard.c b/src/keyboard.c index 6534e45e022..96f0c651658 100644 --- a/src/keyboard.c +++ b/src/keyboard.c @@ -3447,6 +3447,7 @@ record_asynch_buffer_change () event.kind = buffer_switch_event; event.frame_or_window = Qnil; +#ifdef subprocesses /* We don't need a buffer-switch event unless Emacs is waiting for input. The purpose of the event is to make read_key_sequence look up the keymaps again. If we aren't in read_key_sequence, we don't need one, @@ -3454,6 +3455,10 @@ record_asynch_buffer_change () tem = Fwaiting_for_user_input_p (); if (NILP (tem)) return; +#else + /* We never need these events if we have no asynchronous subprocesses. */ + return; +#endif /* Make sure no interrupt happens while storing the event. */ #ifdef SIGIO